
package com.chongchong.system.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.chongchong.core.mp.base.BaseService;
import com.chongchong.system.dto.SessionMessageDetailDTO;
import com.chongchong.system.dto.WorkOrderFileDTO;
import com.chongchong.system.vo.FileInfoVO;
import com.chongchong.user.entity.Attach;
import com.chongchong.user.vo.AttachVO;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import javax.validation.constraints.NotEmpty;
import java.io.IOException;
import java.util.List;

/**
 * 附件表 服务类
 *
 * @author
 */
public interface IAttachService extends BaseService<Attach> {

	/**
	 * 自定义分页
	 *
	 * @param page
	 * @param attach
	 * @return
	 */
	IPage<AttachVO> selectAttachPage(IPage<AttachVO> page, AttachVO attach);

	Attach upload(MultipartFile file) throws IOException ;

	boolean deleteFiles(@NotEmpty List<Long> ids);

	void down(HttpServletResponse response, Long fileId);
}
